package mock.mockito;

import static org.mockito.Mockito.mock;
import org.apache.commons.net.ftp.FTPClient;

import stub.FTPClientConnectStub;

/**
 * 
 * @author Beanstao@gmail.com 2013年11月18日
 */
public class FTPClientMock
{

	public static FTPClient getMockFalseFTPClient()
	{
		FTPClient mockedFTPClient = mock(FTPClient.class);
		FTPClientConnectStub.disConnect(mockedFTPClient);
		return mockedFTPClient;
	}

	public static FTPClient getMockTrueFTPClient()
	{
		FTPClient mockedFTPClient = mock(FTPClient.class);
		FTPClientConnectStub.connect(mockedFTPClient);
		return mockedFTPClient;
	}

}
